package com.mask.bank.entity;

/**
 * ClassName AccountEntity
 * Create by hx
 * Date 2021/9/19 11:30 上午
 */

public class AccountEntity {
    /**
     * 账户id
     */
    private Integer id;

    /**
     * 账户名
     */
    private String name;


    /**
     * 账户金额
     */
    private Double money;

    /**
     * 银行卡号
     */
    private String cardNumbers;

    /**
     * 账户状态 1-正常,0-删除,2-冻结
     */
    private Integer status;

    public AccountEntity() {
    }

    public AccountEntity(String name, String cardNumbers) {
        this.name = name;
        this.cardNumbers = cardNumbers;
    }

    public AccountEntity(String name,Double money, String cardNumbers) {
        this.name = name;
        this.money = money;
        this.cardNumbers = cardNumbers;
    }

    public AccountEntity(Integer id, String name, Double money, String cardNumbers) {
        this.id = id;
        this.name = name;
        this.money = money;
        this.cardNumbers = cardNumbers;
    }

    public AccountEntity(Integer id, String name, Double money, String cardNumbers, Integer status) {
        this.id = id;
        this.name = name;
        this.money = money;
        this.cardNumbers = cardNumbers;
        this.status = status;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Double getMoney() {
        return money;
    }

    public void setMoney(Double money) {
        this.money = money;
    }

    public String getCardNumbers() {
        return cardNumbers;
    }

    public void setCardNumbers(String cardNumbers) {
        this.cardNumbers = cardNumbers;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "AccountEntity{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", money=" + money +
                ", cardNumbers='" + cardNumbers + '\'' +
                ", status=" + status +
                '}';
    }
}
